const {
    pe4to8,
    pe5to10,
    pe5to15,
    pe8to15,
    pe10to15,
    pe10to20,
    pe10to25,
    pe10to30,
    pe15to25,
    pe15to30,
    pe15to35,
    pe20to30,
    pe20to35,
    pe20to40,
    pe20to45,
    pe25to35,
    pe25to40,
    pe25to50,
    pe30to50,
    pe30to60,
    pe40to60,
    pe40to80
} = require('./pe');
const {
    pb0Pto1,
    pb0Pto1P,
    pb1to1P,
    pb1to2,
    pb1to2P,
    pb1to3,
    pb1Pto2P,
    pb1Pto3,
    pb1Pto3P,
    pb2to3,
    pb2to4,
    pb2to5,
    pb3to5,
    pb3to6,
    pb4to8,
    pb4to10,
    pb5to10,
    pb6to12,
    pb8to15,
    pb10to20
} = require('./pb');
const {
    mkt0Pto3,
    mkt0Pto5,
    mkt0Pto10,
    mkt1to5,
    mkt1to10,
    mkt1to20,
    mkt1to30,
    mkt1to50,
    mkt2to10,
    mkt2to20,
    mkt2to30,
    mkt2to200,
    mkt3to20,
    mkt5to20,
    mkt5to30,
    mkt5to50,
    mkt5to100,
    mkt5to150,
    mkt10to100,
    mkt10to150,
    mkt10to200
} = require('./market');
const {
    tn0Pto1,
    tn0Pto1P,
    tn0Pto2,
    tn1to2,
    tn1to3,
    tn2to4,
    tn2to5,
    tn3to6
} = require('./turnover');
const {
    roe5to10,
    roe5to15,
    roe5to20,
    roe5to25,
    roe6to12,
    roe8to12,
    roe8to15,
    roe8to18,
    roe10to15,
    roe10to18,
    roe10to20,
    roe10to25,
    roe12to20,
    roe12to25,
    roe15to25,
    roe15to30
} = require('./roe');
const {
    ratio20to40,
    ratio30to50,
    ratio40to60,
    ratio50to70,
    ratio60to75,
    ratio60to80,
    ratio70to85,
    ratio85to95,
    ratio90to95
} = require('./assetRatio');
// 一、电网设备
function gridEquipmentScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to25(pe);
    score += pb2to4(pb);
    score += mkt1to10(marketValue);
    score += tn1to3(turnoverRate);
    score += roe15to25(roe);
    score += ratio50to70(ratio);
    return score;
}

// 二、游戏
function gameScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to25(pe);
    score += pb3to5(pb);
    score += mkt2to10(marketValue);
    score += tn2to4(turnoverRate);
    score += roe15to30(roe);
    score += ratio20to40(ratio);
    return score;
}

// 三、医疗器械
function medicalDeviceScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe25to40(pe);
    score += pb5to10(pb);
    score += mkt2to20(marketValue);
    score += tn1to3(turnoverRate);
    score += roe15to25(roe);
    score += ratio30to50(ratio);
    return score;
}

// 四、专用设备
function specialEquipmentScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe25to40(pe);
    score += pb3to6(pb);
    score += mkt2to20(marketValue);
    score += tn2to4(turnoverRate);
    score += roe15to25(roe);
    score += ratio50to70(ratio);
    return score;
}

// 五、纺织服装
function textileClothingScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to20(pe);
    score += pb1Pto3(pb);
    score += mkt1to10(marketValue);
    score += tn1to2(turnoverRate);
    score += roe8to15(roe);
    score += ratio30to50(ratio);
    return score;
}

// 六、化学制药
function chemicalPharmacyScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to25(pe);
    score += pb2to4(pb);
    score += mkt1to10(marketValue);
    score += tn1to2(turnoverRate);
    score += roe10to20(roe);
    score += ratio40to60(ratio);
    return score;
}

// 七、仪器仪表
function instrumentScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe25to35(pe);
    score += pb3to5(pb);
    score += mkt0Pto5(marketValue);
    score += tn1to2(turnoverRate);
    score += roe10to18(roe);
    score += ratio40to60(ratio);
    return score;
}

// 八、船舶制造
function shipbuildingScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to20(pe);
    score += pb1to2(pb);
    score += mkt2to10(marketValue);
    score += tn1to3(turnoverRate);
    score += roe5to15(roe);
    score += ratio60to80(ratio);
    return score;
}

// 九、生物制品
function biologicalProductScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe30to50(pe);
    score += pb5to10(pb);
    score += mkt3to20(marketValue);
    score += tn2to4(turnoverRate);
    score += roe15to25(roe);
    score += ratio30to50(ratio);
    return score;
}

// 十、教育
function educationScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to25(pe);
    score += pb1to3(pb);
    score += mkt0Pto5(marketValue);
    score += tn1to3(turnoverRate);
    score += roe8to15(roe);
    score += ratio30to50(ratio);
    return score;
}

// 十一、交运设备
function transportationEquipmentScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to25(pe);
    score += pb1Pto3(pb);
    score += mkt5to20(marketValue);
    score += tn1to2(turnoverRate);
    score += roe10to18(roe);
    score += ratio50to70(ratio);
    return score;
}

// 十二、专业服务
function professionalServiceScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe20to35(pe);
    score += pb4to8(pb);
    score += mkt0Pto5(marketValue);
    score += tn1to2(turnoverRate);
    score += roe12to20(roe);
    score += ratio20to40(ratio);
    return score;
}

// 十三、物流行业
function logisticsScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe20to30(pe);
    score += pb3to5(pb);
    score += mkt2to30(marketValue);
    score += tn1to3(turnoverRate);
    score += roe10to18(roe);
    score += ratio40to60(ratio);
    return score;
}

// 十四、电池
function batteryScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe20to40(pe);
    score += pb4to8(pb);
    score += mkt10to100(marketValue);
    score += tn3to6(turnoverRate);
    score += roe8to18(roe);
    score += ratio50to70(ratio);
    return score;
}

// 十五、医疗服务
function medicalServiceScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe30to50(pe);
    score += pb6to12(pb);
    score += mkt5to30(marketValue);
    score += tn2to4(turnoverRate);
    score += roe15to25(roe);
    score += ratio30to50(ratio);
    return score;
}

// 十六、互联网服务
function internetServiceScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe20to40(pe);
    score += pb4to8(pb);
    score += mkt2to20(marketValue);
    score += tn2to5(turnoverRate);
    score += roe10to25(roe);
    score += ratio20to40(ratio);
    return score;
}

// 十七、化学制品
function chemicalProductScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to25(pe);
    score += pb2to4(pb);
    score += mkt2to20(marketValue);
    score += tn1to2(turnoverRate);
    score += roe10to20(roe);
    score += ratio50to70(ratio);
    return score;
}

// 十八、农牧饲渔
function agriculturalFeedScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to20(pe);
    score += pb2to4(pb);
    score += mkt1to30(marketValue);
    score += tn1to3(turnoverRate);
    score += roe5to15(roe);
    score += ratio40to60(ratio);
    return score;
}

// 十九、工程机械
function engineeringMachineryScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to20(pe);
    score += pb1Pto3(pb);
    score += mkt5to20(marketValue);
    score += tn1to2(turnoverRate);
    score += roe10to20(roe);
    score += ratio50to70(ratio);
    return score;
}

// 二十、通用设备
function generalEquipmentScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe20to35(pe);
    score += pb3to6(pb);
    score += mkt1to10(marketValue);
    score += tn1to3(turnoverRate);
    score += roe10to18(roe);
    score += ratio40to60(ratio);
    return score;
}

// 二十一、通信服务
function communicationServiceScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to25(pe);
    score += pb1Pto3P(pb);
    score += mkt5to150(marketValue);
    score += tn1to3(turnoverRate);
    score += roe8to15(roe);
    score += ratio50to70(ratio);
    return score;
}

// 二十二、中药
function chineseMedicineScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe20to35(pe);
    score += pb4to8(pb);
    score += mkt2to20(marketValue);
    score += tn1to2(turnoverRate);
    score += roe12to20(roe);
    score += ratio30to50(ratio);
    return score;
}

// 二十三、文化传媒
function culturalMediaScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to25(pe);
    score += pb2to4(pb);
    score += mkt0Pto10(marketValue);
    score += tn1to3(turnoverRate);
    score += roe8to15(roe);
    score += ratio30to50(ratio);
    return score;
}

// 二十四、光伏设备
function solarEquipmentScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe20to35(pe);
    score += pb4to8(pb);
    score += mkt2to20(marketValue);
    score += tn2to5(turnoverRate);
    score += roe15to25(roe);
    score += ratio50to70(ratio);
    return score;
}

// 二十五、非金属材料
function nonMetalMaterialScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe20to40(pe);
    score += pb3to6(pb);
    score += mkt1to10(marketValue);
    score += tn1to2(turnoverRate);
    score += roe10to20(roe);
    score += ratio50to70(ratio);
    return score;
}

// 二十六、计算机设备
function computerEquipmentScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe25to50(pe);
    score += pb3to5(pb);
    score += mkt1to10(marketValue);
    score += tn2to4(turnoverRate);
    score += roe10to20(roe);
    score += ratio40to60(ratio);
    return score;
}

// 二十七、电子化学品
function electronicChemicalScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe40to60(pe);
    score += pb5to10(pb);
    score += mkt0Pto5(marketValue);
    score += tn2to5(turnoverRate);
    score += roe12to25(roe);
    score += ratio40to60(ratio);
    return score;
}
// 二十八、环保行业
function environmentalProtectionScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to25(pe);
    score += pb1Pto3(pb);
    score += mkt0Pto5(marketValue);
    score += tn1to2(turnoverRate);
    score += roe8to15(roe);
    score += ratio50to70(ratio);
    return score;
}
// 二十九、光学光电子
function opticalElectronicScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe20to45(pe);
    score += pb2to5(pb);
    score += mkt2to20(marketValue);
    score += tn2to4(turnoverRate);
    score += roe10to18(roe);
    score += ratio50to70(ratio);
    return score;
}

// 三十、化学原料
function chemicalRawScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe8to15(pe);
    score += pb1to2(pb);
    score += mkt1to10(marketValue);
    score += tn1to3(turnoverRate);
    score += roe8to15(roe);
    score += ratio60to80(ratio);
    return score;
}

// 三十一、采掘行业/煤炭行业
function miningIndustryScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe5to15(pe);
    score += pb1to2(pb);
    score += mkt5to100(marketValue);
    score += tn0Pto1P(turnoverRate);
    score += roe10to20(roe);
    score += ratio40to60(ratio);
    return score;
}

// 三十二、汽车零部件
function autoPartsScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to35(pe);
    score += pb3to6(pb);
    score += mkt1to10(marketValue);
    score += tn2to4(turnoverRate);
    score += roe10to20(roe);
    score += ratio40to60(ratio);
    return score;
}

// 三十三、通信设备
function communicationEquipmentScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe25to50(pe);
    score += pb2to4(pb);
    score += mkt5to20(marketValue);
    score += tn2to5(turnoverRate);
    score += roe12to25(roe);
    score += ratio50to70(ratio);
    return score;
}

// 三十四、电源设备
function powerEquipmentScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe20to40(pe);
    score += pb4to8(pb);
    score += mkt2to20(marketValue);
    score += tn2to5(turnoverRate);
    score += roe15to25(roe);
    score += ratio50to70(ratio);
    return score;
}

// 三十五、装修建材
function decorationConstructionScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to25(pe);
    score += pb2to4(pb);
    score += mkt1to10(marketValue);
    score += tn1to2(turnoverRate);
    score += roe8to15(roe);
    score += ratio50to70(ratio);
    return score;
}

// 三十六、农药兽药
function pesticideDrugScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to20(pe);
    score += pb2to3(pb);
    score += mkt1to5(marketValue);
    score += tn1to2(turnoverRate);
    score += roe10to20(roe);
    score += ratio40to60(ratio);
    return score;
}

// 三十七、橡胶制品
function rubberProductScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to30(pe);
    score += pb1Pto3(pb);
    score += mkt1to5(marketValue);
    score += tn1to2(turnoverRate);
    score += roe8to15(roe);
    score += ratio50to70(ratio);
    return score;
}

// 三十八、电子元件
function electronicComponentScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to30(pe);
    score += pb2to4(pb);
    score += mkt1to10(marketValue);
    score += tn2to4(turnoverRate);
    score += roe10to18(roe);
    score += ratio40to60(ratio);
    return score;
}

// 三十九、小金属
function smallMetalScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to30(pe);
    score += pb2to4(pb);
    score += mkt2to20(marketValue);
    score += tn2to5(turnoverRate);
    score += roe10to25(roe);
    score += ratio50to70(ratio);
    return score;
}

// 四十、风电设备
function windPowerEquipmentScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to25(pe);
    score += pb2to4(pb);
    score += mkt2to10(marketValue);
    score += tn2to4(turnoverRate);
    score += roe10to18(roe);
    score += ratio50to70(ratio);
    return score;
}

// 四十一、美容护理
function beautyCareScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe30to60(pe);
    score += pb10to20(pb);
    score += mkt2to20(marketValue);
    score += tn2to5(turnoverRate);
    score += roe15to30(roe);
    score += ratio30to50(ratio);
    return score;
}

// 四十二、贵金属
function preciousMetalScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to30(pe);
    score += pb2to4(pb);
    score += mkt2to20(marketValue);
    score += tn1to3(turnoverRate);
    score += roe8to15(roe);
    score += ratio40to60(ratio);
    return score;
}

// 四十三、旅游酒店
function tourismScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe20to40(pe);
    score += pb2to5(pb);
    score += mkt0Pto5(marketValue);
    score += tn2to5(turnoverRate);
    score += roe8to15(roe);
    score += ratio40to60(ratio);
    return score;
}

// 四十四、航天航空
function aerospaceScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe25to50(pe);
    score += pb3to6(pb);
    score += mkt5to30(marketValue);
    score += tn1to3(turnoverRate);
    score += roe10to20(roe);
    score += ratio40to60(ratio);
    return score;
}

// 四十五、家电行业
function householdScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to30(pe);
    score += pb2to4(pb);
    score += mkt5to50(marketValue);
    score += tn1to3(turnoverRate);
    score += roe12to20(roe);
    score += ratio40to60(ratio);
    return score;
}

// 四十六、家用轻工
function householdLightIndustryScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to25(pe);
    score += pb2to4(pb);
    score += mkt1to10(marketValue);
    score += tn1to2(turnoverRate);
    score += roe8to15(roe);
    score += ratio40to60(ratio);
    return score;
}

// 四十七、塑料制品
function plasticScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to30(pe);
    score += pb1Pto3(pb);
    score += mkt0Pto5(marketValue);
    score += tn1to2(turnoverRate);
    score += roe8to12(roe);
    score += ratio50to70(ratio);
    return score;
}

// 四十八、贸易行业
function tradeScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe5to10(pe);
    score += pb0Pto1P(pb);
    score += mkt0Pto5(marketValue);
    score += tn1to2(turnoverRate);
    score += roe5to10(roe);
    score += ratio60to80(ratio);
    return score;
}

// 四十九、玻璃玻纤
function glassScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to20(pe);
    score += pb1Pto3(pb);
    score += mkt2to10(marketValue);
    score += tn1to3(turnoverRate);
    score += roe10to20(roe);
    score += ratio50to70(ratio);
    return score;
}

// 五十、化肥行业
function fertilizerScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe5to15(pe);
    score += pb1Pto3(pb);
    score += mkt2to10(marketValue);
    score += tn1to3(turnoverRate);
    score += roe10to20(roe);
    score += ratio50to70(ratio);
    return score;
}

// 五十一、能源金属
function energyMetalScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to20(pe);
    score += pb2to5(pb);
    score += mkt5to30(marketValue);
    score += tn3to6(turnoverRate);
    score += roe10to25(roe);
    score += ratio50to70(ratio);
    return score;
}

// 五十二、包装材料
function packagingScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to25(pe);
    score += pb2to3(pb);
    score += mkt0Pto5(marketValue);
    score += tn1to2(turnoverRate);
    score += roe8to15(roe);
    score += ratio40to60(ratio);
    return score;
}

// 五十三、工程建设
function constructionScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe5to10(pe);
    score += pb0Pto1P(pb);
    score += mkt5to30(marketValue);
    score += tn0Pto1P(turnoverRate);
    score += roe5to10(roe);
    score += ratio70to85(ratio);
    return score;
}

// 五十四、商业百货
function commercialScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to20(pe);
    score += pb1to3(pb);
    score += mkt1to50(marketValue);
    score += tn1to3(turnoverRate);
    score += roe5to15(roe);
    score += ratio40to60(ratio);
    return score;
}

// 五十五、电机
function motorScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to35(pe);
    score += pb3to6(pb);
    score += mkt0Pto5(marketValue);
    score += tn2to4(turnoverRate);
    score += roe10to20(roe);
    score += ratio40to60(ratio);
    return score;
}

// 五十六、化纤行业
function chemicalFiberScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe8to15(pe);
    score += pb1to2(pb);
    score += mkt2to10(marketValue);
    score += tn1to3(turnoverRate);
    score += roe8to15(roe);
    score += ratio60to80(ratio);
    return score;
}

// 五十七、汽车服务
function carServiceScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to20(pe);
    score += pb0Pto1P(pb);
    score += mkt0Pto3(marketValue);
    score += tn1to2(turnoverRate);
    score += roe5to10(roe);
    score += ratio60to80(ratio);
    return score;
}

// 五十八、石油行业
function petroleumScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe8to15(pe);
    score += pb0Pto1P(pb);
    score += mkt10to150(marketValue);
    score += tn0Pto1P(turnoverRate);
    score += roe8to15(roe);
    score += ratio50to70(ratio);
    return score;
}

// 五十九、钢铁行业
function steelScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe5to10(pe);
    score += pb0Pto1P(pb);
    score += mkt2to20(marketValue);
    score += tn1to2(turnoverRate);
    score += roe5to15(roe);
    score += ratio60to80(ratio);
    return score;
}

// 六十、造纸印刷
function paperScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to15(pe);
    score += pb1to2(pb);
    score += mkt1to10(marketValue);
    score += tn1to2(turnoverRate);
    score += roe8to15(roe);
    score += ratio50to70(ratio);
    return score;
}

// 六十一、房地产服务
function realEstateServiceScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to25(pe);
    score += pb2to4(pb);
    score += mkt0Pto5(marketValue);
    score += tn1to3(turnoverRate);
    score += roe10to20(roe);
    score += ratio30to50(ratio);
    return score;
}

// 六十二、医药商业
function medicalBusinessScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to25(pe);
    score += pb1Pto3(pb);
    score += mkt1to10(marketValue);
    score += tn1to2(turnoverRate);
    score += roe8to15(roe);
    score += ratio50to70(ratio);
    return score;
}

// 六十三、珠宝首饰
function jewelryScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to30(pe);
    score += pb3to5(pb);
    score += mkt1to5(marketValue);
    score += tn1to2(turnoverRate);
    score += roe12to20(roe);
    score += ratio40to60(ratio);
    return score;
}

// 六十四、汽车整车
function carScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to20(pe);
    score += pb1to3(pb);
    score += mkt5to100(marketValue);
    score += tn2to5(turnoverRate);
    score += roe8to18(roe);
    score += ratio50to70(ratio);
    return score;
}

// 六十五、银行
function bankScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe4to8(pe);
    score += pb0Pto1P(pb);
    score += mkt10to200(marketValue);
    score += tn0Pto1(turnoverRate);
    score += roe8to12(roe);
    score += ratio90to95(ratio);
    return score;
}

// 六十六、航空机场
function airportScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to20(pe);
    score += pb1to2(pb);
    score += mkt5to20(marketValue);
    score += tn1to2(turnoverRate);
    score += roe8to15(roe);
    score += ratio50to70(ratio);
    return score;
}

// 六十七、房地产开发
function realEstateScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe5to15(pe);
    score += pb0Pto1(pb);
    score += mkt1to20(marketValue);
    score += tn1to3(turnoverRate);
    score += roe5to15(roe);
    score += ratio70to85(ratio);
    return score;
}

// 六十八、公用事业
function publicUtilityScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to25(pe);
    score += pb1Pto3(pb);
    score += mkt5to20(marketValue);
    score += tn1to2(turnoverRate);
    score += roe6to12(roe);
    score += ratio60to75(ratio);
    return score;
}

// 六十九、电力行业
function powerScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to15(pe);
    score += pb1to2(pb);
    score += mkt5to50(marketValue);
    score += tn0Pto1P(turnoverRate);
    score += roe6to12(roe);
    score += ratio60to75(ratio);
    return score;
}

// 七十、铁路公路
function railwayScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to15(pe);
    score += pb1to1P(pb);
    score += mkt2to20(marketValue);
    score += tn0Pto1(turnoverRate);
    score += roe8to12(roe);
    score += ratio40to60(ratio);
    return score;
}

// 七十一、航运港口
function portScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe5to10(pe);
    score += pb1to2(pb);
    score += mkt5to30(marketValue);
    score += tn2to5(turnoverRate);
    score += roe5to20(roe);
    score += ratio50to70(ratio);
    return score;
}

// 七十二、证券
function securitiesScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to25(pe);
    score += pb1to2P(pb);
    score += mkt5to30(marketValue);
    score += tn1to3(turnoverRate);
    score += roe6to12(roe);
    score += ratio70to85(ratio);
    return score;
}

// 七十三、综合行业
function generalScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to20(pe);
    score += pb0Pto1P(pb);
    score += mkt0Pto5(marketValue);
    score += tn1to2(turnoverRate);
    score += roe5to10(roe);
    score += ratio50to70(ratio);
    return score;
}

// 七十四、多元金融
function multipleFinanceScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to25(pe);
    score += pb1to3(pb);
    score += mkt0Pto10(marketValue);
    score += tn1to3(turnoverRate);
    score += roe8to15(roe);
    score += ratio50to70(ratio);
    return score;
}

// 七十五、酿酒行业
function brewingScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe25to35(pe);
    score += pb8to15(pb);
    score += mkt10to200(marketValue);
    score += tn1to2(turnoverRate);
    score += roe15to30(roe);
    score += ratio30to50(ratio);
    return score;
}

// 七十六、水泥建材
function cementScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe8to15(pe);
    score += pb1to1P(pb);
    score += mkt2to20(marketValue);
    score += tn0Pto1P(turnoverRate);
    score += roe8to15(roe);
    score += ratio50to70(ratio);
    return score;
}

// 七十七、保险
function insuranceScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to20(pe);
    score += pb1to2(pb);
    score += mkt10to150(marketValue);
    score += tn0Pto1(turnoverRate);
    score += roe8to12(roe);
    score += ratio85to95(ratio);
    return score;
}

// 七十八、水务
function waterScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe15to25(pe);
    score += pb1Pto2P(pb);
    score += mkt1to5(marketValue);
    score += tn0Pto1(turnoverRate);
    score += roe8to12(roe);
    score += ratio50to70(ratio);
    return score;
}

// 七十九、文化旅游休闲
function culturalEntertainmentScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe20to40(pe);
    score += pb2to5(pb);
    score += mkt2to10(marketValue);
    score += tn1to3(turnoverRate);
    score += roe8to15(roe);
    score += ratio40to60(ratio);
    return score;
}

// 八十、工程咨询服务
function engineeringConsultingScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to25(pe);
    score += pb2to4(pb);
    score += mkt0Pto3(marketValue);
    score += tn1to2(turnoverRate);
    score += roe10to15(roe);
    score += ratio40to60(ratio);
    return score;
}

// 八十一、燃气
function gasScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to20(pe);
    score += pb1Pto3(pb);
    score += mkt1to10(marketValue);
    score += tn0Pto1P(turnoverRate);
    score += roe8to12(roe);
    score += ratio50to70(ratio);
    return score;
}

// 八十二、装修装饰
function decorationScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to20(pe);
    score += pb1to2(pb);
    score += mkt0Pto3(marketValue);
    score += tn1to2(turnoverRate);
    score += roe5to10(roe);
    score += ratio60to80(ratio);
    return score;
}

// 八十三、消费电子
function electronicScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe20to40(pe);
    score += pb3to6(pb);
    score += mkt5to50(marketValue);
    score += tn2to5(turnoverRate);
    score += roe10to20(roe);
    score += ratio40to60(ratio);
    return score;
}

// 八十四、食品饮料
function foodScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe20to30(pe);
    score += pb4to10(pb);
    score += mkt2to200(marketValue);
    score += tn0Pto2(turnoverRate);
    score += roe15to30(roe);
    score += ratio30to50(ratio);
    return score;
}

// 八十五、半导体
function semiconductorScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe30to60(pe);
    score += pb4to8(pb);
    score += mkt5to30(marketValue);
    score += tn3to6(turnoverRate);
    score += roe12to25(roe);
    score += ratio30to50(ratio);
    return score;
}

// 八十六、软件开发
function softwareScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe40to80(pe);
    score += pb5to10(pb);
    score += mkt2to20(marketValue);
    score += tn2to4(turnoverRate);
    score += roe10to20(roe);
    score += ratio20to40(ratio);
    return score;
}

// 八十七、有色金属
function metalScore({ turnoverRate, pe, pb, marketValue, roe, ratio }) {
    let score = 0;
    score += pe10to20(pe);
    score += pb1Pto3(pb);
    score += mkt5to30(marketValue);
    score += tn2to5(turnoverRate);
    score += roe5to25(roe);
    score += ratio50to70(ratio);
    return score;
}

module.exports = {
    electronicScore,
    foodScore,
    semiconductorScore,
    softwareScore,
    householdScore,
    metalScore,
    tourismScore,
    constructionScore,
    gasScore,
    engineeringConsultingScore,
    waterScore,
    culturalMediaScore,
    solarEquipmentScore,
    nonMetalMaterialScore,
    computerEquipmentScore,
    electronicChemicalScore,
    environmentalProtectionScore,
    opticalElectronicScore,
    chemicalRawScore,
    miningIndustryScore,
    autoPartsScore,
    communicationEquipmentScore,
    powerEquipmentScore,
    decorationConstructionScore,
    pesticideDrugScore,
    rubberProductScore,
    electronicComponentScore,
    smallMetalScore,
    windPowerEquipmentScore,
    beautyCareScore,
    preciousMetalScore,
    aerospaceScore,
    householdLightIndustryScore,
    plasticScore,
    tradeScore,
    glassScore,
    fertilizerScore,
    energyMetalScore,
    packagingScore,
    commercialScore,
    motorScore,
    chemicalFiberScore,
    carServiceScore,
    petroleumScore,
    steelScore,
    paperScore,
    realEstateServiceScore,
    medicalBusinessScore,
    jewelryScore,
    carScore,
    bankScore,
    airportScore,
    realEstateScore,
    publicUtilityScore,
    powerScore,
    railwayScore,
    decorationScore,
    multipleFinanceScore,
    cementScore,
    brewingScore,
    chineseMedicineScore,
    communicationServiceScore,
    generalEquipmentScore,
    engineeringMachineryScore,
    agriculturalFeedScore,
    internetServiceScore,
    chemicalProductScore,
    medicalServiceScore,
    batteryScore,
    logisticsScore,
    professionalServiceScore,
    transportationEquipmentScore,
    educationScore,
    biologicalProductScore,
    shipbuildingScore,
    instrumentScore,
    chemicalPharmacyScore,
    textileClothingScore,
    specialEquipmentScore,
    medicalDeviceScore,
    gameScore,
    gridEquipmentScore,
    insuranceScore,
    portScore,
    securitiesScore,
    generalScore,
    culturalEntertainmentScore
};
